// 微信接口返回的数据类型定义
export interface WxLoginResponse {
  openid: string;
  session_key: string;
  unionid?: string;
  errcode?: number;
  errmsg?: string;
}

export interface WxPhoneInfo {
  phoneNumber: string;
  purePhoneNumber: string;
  countryCode: string;
  watermark: {
    timestamp: number;
    appid: string;
  };
}

export interface WxUserInfo {
  nickName: string;
  avatarUrl: string;
  gender: number;
  country: string;
  province: string;
  city: string;
  language: string;
}

export interface WxConfig {
  appId: string;
  appSecret: string;
}

// 模板消息相关类型定义
export interface WxTemplateData {
  [key: string]: { value: string };
}

export interface WxTemplateMsgSendParams {
  openid: string;
  templateId: string;
  data: WxTemplateData;
  page?: string;
  lang?: 'zh_CN' | 'en_US' | 'zh_HK' | 'zh_TW';
  miniprogramState?: 'developer' | 'trial' | 'formal';
}

export interface WxTemplateItem {
  priTmplId: string;
  title: string;
  content: string;
  example: string;
  type: number;
  keywordCount: number;
} 